package com.itheima.duotai.homework.homework6;

public class Demo6 {
    public static void main(String[] args) {
        AnimalOperator animalOperator=new AnimalOperator();
        animalOperator.useAnimal(new Dog());
        animalOperator.useAnimal(new Frog());
        animalOperator.useAnimal(new Sheep());
    }


}
